package com.easygem.front.converter;

import com.easygem.common.model.front.ResourceInfo;
import com.easygem.common.vo.front.ResourceInfoVO;
import org.springframework.beans.BeanUtils;

/**
 * @author 肖智
 * @version 1.0
 * @Description TODO
 * @date 2024/12/24
 */
public class CustomerConverter {

    /**
     * 转vo  ,用于返回给前端的实体
     * @return  resourceInfoVO
     */
    public static ResourceInfoVO converterToResourceInfoVO(ResourceInfo resourceInfo) {
        ResourceInfoVO resourceInfoVO = new ResourceInfoVO();
        BeanUtils.copyProperties(resourceInfo, resourceInfoVO);
        return resourceInfoVO;
    }
}
